package com.sunny.myproject.system.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.criterion.Criterion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sunny.myproject.core.base.service.BaseServiceImpl;
import com.sunny.myproject.system.dao.RoleDao;
import com.sunny.myproject.system.entity.Role;
import com.sunny.myproject.system.service.RoleService;

@Repository
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService{

	@Autowired
	private RoleDao dao;
	
	@Override
	public List<Role> findAll() {
		List<Criterion> criterions = new ArrayList<Criterion>();
		return dao.getList(criterions);
	}

}
